unit untCadAgenda;

interface

uses
  Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
  Vcl.Controls, Vcl.Forms, Vcl.Dialogs, untAbsEdicao, Vcl.ImgList, Vcl.ActnList,
  Vcl.ComCtrls, Vcl.ToolWin, Vcl.ExtCtrls, Data.DB, Data.Win.ADODB,
  Vcl.StdCtrls, Vcl.Mask, Vcl.DBCtrls;

type
  TfrmCadAgenda = class(TfrmAbsEdicao)
    qryAgenda: TADOQuery;
    dtsAgenda: TDataSource;
    qryAgendaID: TAutoIncField;
    qryAgendaDT_EVENTO: TDateTimeField;
    qryAgendaTITULO: TStringField;
    qryAgendaHORA: TStringField;
    qryAgendaDESCRICAO: TStringField;
    qryAgendaFK_USUARIO: TIntegerField;
    Label2: TLabel;
    DBEdit2: TDBEdit;
    Label3: TLabel;
    DBEdit3: TDBEdit;
    Label4: TLabel;
    DBEdit4: TDBEdit;
    Label5: TLabel;
    DBEdit5: TDBEdit;
    Label6: TLabel;
    Label13: TLabel;
    DBEdit13: TDBEdit;
    DBLookupComboBox1: TDBLookupComboBox;
    procedure qryAgendaNewRecord(DataSet: TDataSet);
  private
    { Private declarations }
  protected
    procedure CaixaAlta; override;
  public
    { Public declarations }
  end;

var
  frmCadAgenda: TfrmCadAgenda;

implementation

{$R *.dfm}

uses untDTMPrincipal, untDTMLooKup, VarGlobais;

{ TfrmCadAgenda }

procedure TfrmCadAgenda.CaixaAlta;
begin
//  inherited;
end;

procedure TfrmCadAgenda.qryAgendaNewRecord(DataSet: TDataSet);
begin
  inherited;
  qryAgendaFK_USUARIO.AsInteger := UsuarioLogado.ID;
end;

end.
